package com.xiaoyou;

import com.xiaoyou.config.SpringConfig;
import com.xiaoyou.config.SpringMvcConfig;
import com.xiaoyou.service.BookService;
import com.xiaozuo.controller.UserController;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class App {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext ctx=new AnnotationConfigApplicationContext(SpringConfig.class);
        System.out.println(ctx.getBean(UserController.class));
    }
}
